__version__ = "1.0.0"

import libpyhat
from libpyhat import Unmixing
from libpyhat import clustering
from libpyhat import derived
from libpyhat import emi
from libpyhat import regression
from libpyhat import transform
from libpyhat import utils
from libpyhat.transform import continuum

__all__ = [
    "libpyhat",
    "Unmixing",
    "clustering",
    "derived",
    "emi",
    "regression",
    "transform",
    "utils",
    "continuum",
]

'''
import libpyhat

__all__ = ["get_path"]

# Used largely unmodififed from:
# https://github.com/pysal/pysal/blob/master/pysal/examples/__init__.py


def available(directory="", verbose=False):  # pragma: no cover
    """
    List available datasets in autocnet.examples

    Parameters
    ==========
    directory : str
                The directory in which examples are stored

    verbose : boolean
              If True, return README information about each example, default False
    """
    base = get_path(directory)
    examples = [os.path.join(get_path(""), d) for d in os.listdir(base)]
    if directory != "":
        examples = [d for d in examples if "__" not in d]
    else:
        examples = [d for d in examples if os.path.isdir(d) and "__" not in d]
    # if not verbose:
    return [os.path.split(d)[-1] for d in examples]
    # examples = [os.path.join(dty, 'README.md') for dty in examples]
    # descs = [_read_example(path) for path in examples]
    # return [{desc['name']:desc['description'] for desc in descs}]
'''
